//
//  LeGui.h
//  Leste
//
//  Created by 王乐 on 2022/1/25.
//

#ifndef LeGui_hpp
#define LeGui_hpp

#include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw.h"
#include "imgui/imgui_impl_opengl3.h"

class LeGui
{
public:
    LeGui();
    ~LeGui();
    
public:
    void initGui(GLFWwindow* window); //call before loop
    void shutGui(); // call after loop
    void startGui(); // Call at begin of loop
    void renderGui(); // call at end of loop
    
    void showDemoWindow();// call in the loop
    void showGuiWindow();
    void showAnotherWindow();
    
public:
    float dTestPara = 0;
    int counter = 0;

private:
    // Our state
    bool show_demo_window = false;
    bool show_another_window = false;
    ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
};

#endif /* LeGui_hpp */
